<%-- 
    Document   : add
    Created on : 8-dec-2009, 1:32:14
    Author     : Thomas Roelens
--%>

<%-- ${pageContext.request.contextPath} --%>
<%@include file="../../header.jsp" %>

<h1>Set a consultation for ${patientname}</h1>

<c:if test="${!empty flash}">
    <div class="flash error">${flash}</div>
</c:if>

<form method="post" action="${pageContext.request.contextPath}/gp/patient/consultation/saveadd.jsp" >
    <table>
        <tr>
            <td>
                Day of consultation
            </td>
            <td>
                <%--<fmt:formatDate var="date" value="${consultation.date}" pattern="dd MMM yyyy" />--%>
                <input type="text" name="date" id="date" value="${date}"/>
            </td>
        </tr>
        <tr>
            <td>
                <label for="consultation_time">Time of consultation</label>
            </td>
            <td>
                <input type="text" name="hour" id="time_h" size="1" />:
                <input type="text" name="minute" id="time_m" size="1" />
            </td>
        </tr>

        <tr style="padding-top:10px;">
            <td>

            </td>
            <td>
                <input type="hidden" name="patientId" value="${pid}" />
                <input type="submit" value="Set consultation" name="submit" />
            </td>
        </tr>

    </table>
</form>

<script type="text/javascript">
    $(document).ready(function() {
        $("#date").datepicker({dateFormat : 'd M yy'}).datepicker('show');

        init_input_field($("#time_h"), "HH");
        init_input_field($("#time_m"), "MM");
    });

    
</script>

<%@include file="../../footer.jsp" %>
